const app = getApp()
Page({
  /**
   * 页面的初始数据
   */
  data: {
    card: [],
  },
 
  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
    let that = this;
    app.isLogin(function () {
      that.getApi()
    });
  },
  /**
  * 生命周期函数--监听页面初次渲染完成
  */
  onReady: function () {
    this.setData({
      skeleton: false,
    })
  },
  /**
   * 读取我的订单
   */
  getApi: function () {
    let that = this;
    let checked = false;
    app.api().Get("api/v1/allwin-card-manageStoreCard", function (result) {
      that.setData({
        card: result.data,
      });
    })
  }
})